package com.fire.control.system.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "t_warning_message_detail")
public class WarningMessageDetail extends BaseEntity{
	
	private static final long serialVersionUID = 6854336479025803024L;
	
	@ManyToOne
    @JoinColumn(name="warning_id")
	private WarningInfo warningInfo;
	@Transient
	private String warningId;
	@Column
    private String title;
	@Column
    private String content;
	@Column
    private Date receiveTime;
	@ManyToOne
    @JoinColumn(name="user_id")
	private User user;
	@Transient
	private String userId;
	@Column
    private String clientType;
	@Column
	private String sendStatus;
	@Column
	private String msg;
	@Column
	private String getuiTaskId;
	
	
    public String getWarningId() {
		return warningId;
	}

	public void setWarningId(String warningId) {
		this.warningId = warningId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getGetuiTaskId() {
		return getuiTaskId;
	}

	public void setGetuiTaskId(String getuiTaskId) {
		this.getuiTaskId = getuiTaskId;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(String sendStatus) {
		this.sendStatus = sendStatus;
	}

	public WarningInfo getWarningInfo() {
		return warningInfo;
	}

	public void setWarningInfo(WarningInfo warningInfo) {
		this.warningInfo = warningInfo;
	}

	
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }
    
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
    
    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }
    
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}



}